
from django.urls import path, include, re_path
from api.views import auth
from api.views  import topic
from api.views import news,personal


urlpatterns = [
    # path('oss/credential/',auth.OssCredentialView.as_view()),

    path('message/',auth.MessageView.as_view()),
    path('login/',auth.LoginView.as_view()),

    path('news/',news.NewsView.as_view()),
    path('topic/',news.TopicView.as_view()),
    re_path('news/(?P<pk>\d+)/',news.NewsDetailView.as_view()),
    path('comment/',news.CommentView.as_view()),
    path('favor/',news.FavorView.as_view()),
    #获取临时密钥的接口
    path('credential/',auth.CredentialView.as_view()),


    path('test/',news.TestView.as_view()),

    path('MeNews/',news.MeNews.as_view()),
    path('modifyPersonal/',personal.modifyPersonalInformations.as_view()),
    path('myfavor/',personal.myFavor.as_view()),
    path('follow/',news.FollowUser.as_view()),
    re_path('pageView/(?P<pk>\d+)/',personal.pageView.as_view()),
    # re_path('GetmodifyNews/(?P<pk>\d+)/',news.GetModifyNewsView.as_view())
    path('followUser/',personal.followUserView.as_view()),
    path('fansUser/',personal.fansUserView.as_view()),
    path('school/',news.schoolView.as_view()),
    path('search/',news.SearchView.as_view()),
    re_path('delete/(?P<pk>\d+)/',news.newsDeleteView.as_view()),
    path('searchSchool/',news.searchSchoolView.as_view())
]


